import javax.print.PrintException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;


public class ThreadManager implements Runnable {
    ShifrManager shifr = new ShifrManager();
    Runnable r1 = new Thread1();
    Thread t1 = new Thread(r1);
    Runnable r2 = new Thread2();
    Thread t2 = new Thread(r2);
    Runnable r3 = new Thread3();
    Thread t3 = new Thread(r3);
    Runnable r4 = new Thread1();
    Thread t4 = new Thread(r4);
    Runnable r5 = new Thread1();
    Thread t5 = new Thread(r5);

    @Override
    public synchronized void run() {
        try {

            System.out.println("Woker!");


            t1.start();
            t2.start();
            t3.start();
            t4.start();
            t5.start();


            System.out.println("Finish!");
        } catch (Exception e) {

        }
    }


}
